import request from '@/utils/request'

// 查询floors列表
export function listFloors(query) {
  return request({
    url: '/system/floors/list',
    method: 'get',
    params: query
  })
}

// 查询floors详细
export function getFloors(id) {
  return request({
    url: '/system/floors/' + id,
    method: 'get'
  })
}

// 新增floors
export function addFloors(data) {
  return request({
    url: '/system/floors',
    method: 'post',
    data: data
  })
}

// 修改floors
export function updateFloors(data) {
  return request({
    url: '/system/floors',
    method: 'put',
    data: data
  })
}

// 删除floors
export function delFloors(id) {
  return request({
    url: '/system/floors/' + id,
    method: 'delete'
  })
}

// 获取floors列表(不分页)
export function floorsList(){
  return request({
    url: '/system/floors/listFloors',
    method: 'post'
  })
}
